----------------------------------------------------------------------
-- Delay of N ns (simulation only)
-- Stephen West, James Carroll
-- BYU ECEn 620, October 2008
-- 
-- One-bit generic delay element
--
-- Generic
--		delay:integer:=1
-- Units are in ns
-- Delay < 1 not allowed
----------------------------------------------------------------------
Library ieee;
	use ieee.std_logic_1164.all;
	use ieee.numeric_std.all;
	
entity Delay is
	generic(
        -- units are in ns
		delay:std.standard.time:=1
	);
	port(
		input: in std_logic;
		output: out std_logic
	);
end entity;

architecture Delay of Delay is
	signal delay_n: std_logic;
begin
	--assert delay<1 report "Delay<1; not allowed!" severity error;
	delay_n<=input after 1 ns ;
    output<=delay_n;
end architecture;

